<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<title></title>
	</head>
	<body>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
			</ul>
		</div>
		
		<div>
			<g:if test="${flash.message}">
				<div class="message" role="status">${flash.message}</div>
			</g:if>
			
			<g:hasErrors bean="${registrationCommand}">
				<ul class="errors" role="alert">
					<g:eachError bean="${registrationCommand}" var="error">
						<li <g:if test="${error in org.springframework.validation.FieldError}">data-field-id="${error.field}"</g:if>><g:message error="${error}"/></li>
					</g:eachError>
				</ul>
			</g:hasErrors>
		
		
		<g:form action="signup" >
			<fieldset class="form">
				
				<div class="fieldcontain ${hasErrors(bean: registrationCommand, field: 'firstname', 'error')} ">
					<label for="firstname">
						<g:message code="user.firstname.label" default="Firstname" />
						
					</label>
					<g:textField name="firstname" value="${registrationCommand?.firstname}"/>
				</div>
				
				<div class="fieldcontain ${hasErrors(bean: registrationCommand, field: 'lastname', 'error')} ">
					<label for="lastname">
						<g:message code="user.lastname.label" default="Lastname" />
						
					</label>
					<g:textField name="lastname" value="${registrationCommand?.lastname}"/>
				</div>
				
				<div class="fieldcontain ${hasErrors(bean: registrationCommand, field: 'email', 'error')} ">
					<label for="email">
						<g:message code="user.email.label" default="Email" />
						
					</label>
					<g:textField name="email" value="${registrationCommand?.email}"/>
				</div>
			</fieldset>
			<fieldset class="buttons">
				<g:submitButton name="signup" class="save" value="Anmelden" />
			</fieldset>
		</g:form>
		</div>
	</body>
</html>
